package com.xiyou.luckdraw.web.config.mongo;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.MongoTemplate;

/**
 * @ClassName: LogMongoConfig
 * @Description: 头脑吃鸡(和平)mongodb配置
 * @author: limingxing
 * @Date: 2019-10-21 17:14
 */
@Configuration
@ConfigurationProperties(prefix = "spring.data.mongodb.luckyelite")
public class LuckyeliteMongoConfig extends AbstractMongoConfig {

    @Override
    @Bean(name = "luckyeliteMongoTemplate")
    public MongoTemplate getMongoTemplate() throws Exception {
        return new MongoTemplate(mongoDbFactory());
    }


}
